mcp Web Socket
suspend fun HttpClient.mcpWebSocket(urlString: String? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {}): Client(source)
Creates and connects an MCP client over WebSocket using the provided HttpClient.
Return
A connected Client ready for MCP communication.
Parameters
url String
Optional URL of the MCP server.
request Builder
Optional lambda to configure the HTTP request.